.order-container {
  background-color: #f5f5f5;
}

.order-header {
  background: white;
  text-align: left;

  .order-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
  }
}

.order-tabs {
  background: white;

  // 自定义 NutUI Tabs 样式
  :global(.nut-tabs) {
    .nut-tabs__titles {
      background: white;
      border-bottom: 1px solid #eee;

      .nut-tabs__titles-item {
        flex: 1;
        text-align: center;
        padding: 15px 0;
        font-size: 14px;
        color: #666;

        &.nut-tabs__titles-item--active {
          color: #007aff;

          .nut-tabs__titles-item__line {
            background-color: #007aff;
            height: 2px;
            width: 30px;
            margin: 0 auto;
          }
        }
      }
    }

    .nut-tabs__content {
      background: #f5f5f5;
      min-height: calc(100vh - 200px);
    }
  }
}

.empty-orders {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 300px;
  padding: 40px 20px;

  .empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;

    .icon-text {
      font-size: 24px;
    }
  }

  .empty-title {
    font-size: 18px;
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
  }

  .empty-desc {
    font-size: 14px;
    color: #999;
    margin-bottom: 24px;
  }

  .empty-button {
    width: 120px;
  }
}

.order-list {
  background: #f5f5f5;
  min-height: calc(100vh - 200px);

  .order-item {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: box-shadow 0.2s ease;

    &:hover {
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

    .order-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-start;
      margin-bottom: 12px;

      .order-info {
        .order-number {
          font-size: 12px;
          color: #666;
          margin-bottom: 4px;
        }

        .order-date {
          font-size: 12px;
          color: #999;
        }
      }

      .order-status {
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 12px;
        font-weight: 500;

        &.order-status-pending {
          color: #f59e0b;
          background: #fef3c7;
        }

        &.order-status-in_progress {
          color: #3b82f6;
          background: #dbeafe;
        }

        &.order-status-completed {
          color: #10b981;
          background: #d1fae5;
        }

        .status-text {
          font-size: 12px;
        }
      }
    }

    .project-info {
      margin-bottom: 16px;

      .project-title {
        font-size: 16px;
        font-weight: 600;
        color: #333;
        margin-bottom: 4px;
        line-height: 1.4;
      }

      .project-address {
        font-size: 14px;
        color: #666;
        line-height: 1.4;
      }
    }

    .order-footer {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding-top: 12px;
      border-top: 1px solid #f0f0f0;
      margin-bottom: 16px;

      .total-label {
        font-size: 14px;
        color: #666;
      }

      .total-amount {
        font-size: 18px;
        font-weight: 700;
        color: #333;
      }
    }

    .action-buttons {
      display: flex;
      gap: 8px;
    }
  }
}
